package com.wkbb.sports.enums;

public enum SportsModelTypeEnum {

    MOCKS(1, 1, "一分钟跳绳",true) ,

    LIMIT(2, 1, "限时限数",false),

    COUNT(3, 1, "数量模式",false),

    TIME(4, 1, "时间模式",false),

    RUN800(5, 2, "800米模拟考",true),

    RUN1000(6, 2, "1000米模拟考",true),
    
    SHORT50(7,3,"50米模拟考",true),
    
    SHORT100(8,3,"100米模拟考",true),

    SHORT200(9,3,"200米模拟考",true),
	
	MJPT(10,4,"普通模式",false),
	
	MJGR(11,4,"干扰模式",false),
	
	BASKETBALL(12,6,"篮球模式",false),

    SHORT4X10(13,3,"4*10米折返跑",true),

    SHORT4X25(14,3,"4*25米折返跑",true),

    SHORT8X50(15,3,"8*50米折返跑",true),

    SHORT10X50(17,3,"10*50米折返跑",true),

    SHORT22X50(18,3,"22*50米折返跑",true),

    SHORT4X200(16,3,"4*200米",true);

    private SportsModelTypeEnum(Integer value, int projectKind , String desc ,boolean isProject) {
        this.value = value;
        this.projectKind = (byte)projectKind;
        this.desc = desc;
        this.isProject = isProject;
    }


    private Integer value;

    /**
     * 项目类型(1跳绳,2跑步,3短跑，4敏捷，5手环,6篮球)
     */
    private byte projectKind;
    //是否是项目分类
    private boolean isProject;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }

    public byte getProjectKind() {
        return this.projectKind;
    }

    public boolean getIsProject() {
        return this.isProject;
    }

    public static String getDesc(Integer value) {
        for (SportsModelTypeEnum modelType : SportsModelTypeEnum.values()) {
            if (modelType.getValue().intValue()==value) {
                return modelType.getDesc();
            }
        }
        return null;
    }

}
